﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel; 
namespace Demo.ServiceProxy
{
    public class CalculatorServiceProxy : ClientBase<ServiceContracts.ICalculatorService>, ServiceContracts.ICalculatorService
    {
        public CalculatorServiceProxy(string config ) : base(config)
        {

        }
        public double Multiplicacion(double a, double b)
        {
            return  this.Channel.Multiplicacion(a, b); 
        }
        public ServiceContracts.MessageContracts.SumaResponse Suma(ServiceContracts.MessageContracts.SumaRequest request)
        {
            return this.Channel.Suma(request);
        }
        public void LogOperation(string message)
        {
             this.Channel.LogOperation(message);  
        }
    }
}
